package com.biz.primus.model.cat.vo;

import com.biz.primus.model.cat.enums.CatSaleStatusEnum;
import com.biz.primus.model.cat.enums.CatStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

import java.sql.Timestamp;

/**
 * @author yanweijin
 * @date 2017/9/12
 */
@Data
@ApiModel("猫的模型vo")
public class CatVo {

	@ApiModelProperty("猫的id,在新增操作时,不需要这个值")
	private Long id;

	@ApiModelProperty("记录创建时间")
	private Timestamp createTimestamp;

	@ApiModelProperty("猫的名称")
    @NotNull(message = "名字不能为空")
	private String name;

	@ApiModelProperty("猫的年龄")
	private Integer age;

	@ApiModelProperty("猫的状态,DEAD:死猫;ALIVE:活猫")
    @NotNull(message = "状态不能为空")
	private CatStatus status;

    @ApiModelProperty("猫的销售状态, FOR_SALE(1, \"待售\"), LOCK(5, \"锁定\"), SOLD(10, \"已售\")")
    @NotNull(message = "销售状态不能为空")
	private CatSaleStatusEnum saleStatus;

}
